package com.example.demo.src;

/**
 * Created by Easettle
 * @date 2021/6/6
 * Content:
 */
public class UnLonginState extends UserState{

    @Override
    public void favorite() {
        this.switchLogin();
        this.context.getStates().favorite();
    }

    @Override
    public void comment(String comment) {

    }

    private void switchLogin() {
        System.out.println("跳转到登录页面");
        this.context.setStates(AppContext.LOGIN_STATE);
    }
}
